<style>
    .layui-layer-page{
        top:150px !important;
        
    }
    .layui-layer-content{
        max-height: 500px !important;
    }
</style>
<form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">
    <div class="layui-card-body">
        <div class="layui-form-item">
            <label class="layui-form-label label-required">关联作业人员</label>
            <div class="layui-input-block">
                <select name='uid' class='layui-select' lay-search>
                    <!--{foreach $user as $k=>$v}-->
                    <!--{eq name='v.id' value='$vo.uid|default=0'}-->
                    <option selected value='{$v.id}'>{$v.name}</option>
                    <!--{else}-->
                    <option value='{$v.id}'>{$v.name}</option>
                    <!--{/eq}-->
                    <!--{/foreach}-->
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label label-required">是否是组长</label>
            <div class="layui-input-block">
                <input type="hidden" name="is_group" value="0">
                <input type="checkbox" name="is_group" lay-filter="switchTest" lay-skin="switch" lay-text="是|否"
                    value="1" {if isset($vo.is_group) && $vo.is_group == 1 }checked{/if}>
            </div>
        </div>
        <div class="layui-row">
            <label class="layui-form-label think-form-label">确认凭证</label>
            <label class="layui-col-xs8 think-form-group-left">
                <input name="confirm_evidence" value='{$vo.confirm_evidence|default=""}' placeholder="请上传确认凭证"
                    class="layui-input">
            </label>
            <a class="layui-col-xs2 layui-btn think-form-group-right" data-file="btn" data-field="confirm_evidence"
                data-type="png,jpg,gif">
                <i class="layui-icon layui-icon-upload"></i> 上传图片
            </a>
        </div>
        <fieldset class="layui-elem-field layui-field-title" style="text-align: center;" hidden>
            <legend><a href="javascript:viod(0)" id="switch_fine_content"><i style="font-size:20px"
                        class="fa fa-angle-double-down">展开扣罚项</i></a></legend>
        </fieldset>
        <div id="fine_content" class="layui-form-pane" style="padding: 10px;" hidden>
            <blockquote class="layui-elem-quote" style="text-align: center;">扣罚项</blockquote>
            <span class="color-green font-w7" style="padding: 10px;">商品买赔</span>

            <div class="layui-form-item">
                <label class="layui-form-label">总金额</label>
                <div class="layui-input-block">
                    <input name="goods_fine_price" value='{$vo.goods_fine_price|default=""}' placeholder="请输入总金额"
                        class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">凭证</label>
                <div class="layui-input-block">
                    <label class="layui-col-xs8 think-form-group-left">
                        <input name="goods_fine_evidence" value='{$vo.goods_fine_evidence|default=""}'
                            placeholder="请上传凭证" class="layui-input">
                    </label>
                    <a class="layui-col-xs4 layui-btn think-form-group-right" data-file="one"
                        data-field="goods_fine_evidence" data-type="png,jpg,gif">
                        <i class="layui-icon layui-icon-upload"></i> 上传图片
                    </a>
                </div>
            </div>


            <span class="color-green font-w7">超时罚款</span><br>

            <div class="layui-form-item">
                <label class="layui-form-label">点数</label>
                <div class="layui-input-block">
                    <input name="timeout_fine_count" value='{$vo.timeout_fine_count|default=""}' placeholder="请输入点数"
                        class="layui-input" type="number">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">单价</label>
                <div class="layui-input-block">
                    <input name="timeout_fine_price" value='{$vo.timeout_fine_price|default=""}' placeholder="请输入单价"
                        class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">凭证</label>
                <div class="layui-input-block">
                    <label class="layui-col-xs8 think-form-group-left">
                        <input name="timeout_fine_evidence" value='{$vo.timeout_fine_evidence|default=""}'
                            placeholder="请上传凭证" class="layui-input">
                    </label>
                    <a class="layui-col-xs4 layui-btn think-form-group-right" data-file="one"
                        data-field="timeout_fine_evidence" data-type="png,jpg,gif">
                        <i class="layui-icon layui-icon-upload"></i> 上传图片
                    </a>
                </div>
            </div>

            <span class="color-green font-w7">其他罚款项</span>
            <div class="layui-form-item">
                <label class="layui-form-label">总金额</label>
                <div class="layui-input-block">
                    <input name="other_fine_price" value='{$vo.other_fine_price|default=""}' placeholder="请输入总金额"
                        class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">备注</label>
                <div class="layui-input-block">
                    <textarea name="other_fine_remark" class="layui-textarea"
                        placeholder="请输入原因备注">{$vo.other_fine_remark|default=""}</textarea>
                </div>
            </div>
        </div>
    </div>

    <div class="hr-line-dashed"></div>
    {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}

    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-close>取消编辑</button>
    </div>
</form>
<script>
    window.form.render();
    $('#switch_fine_content').click(function () {
        $('#fine_content').toggle();
    })
</script>